From: Kenichi Handa Date: Thu, 9 Apr 2009 03:47:31 +0000 (+0000) Subject: (map_charset_chars): For a charset of `superset' X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~915 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=74a64ddaf7da1091ed8f1332e95408920400d7d0;p=emacs.git (map_charset_chars): For a charset of `superset' method, fix calculation of code range. --- diff --git a/src/charset.c b/src/charset.c index 54602ebe21d..492849f6868 100644 --- a/src/charset.c +++ b/src/charset.c @@ -809,8 +809,8 @@ map_charset_chars (c_function, function, arg, charset = CHARSET_FROM_ID (XFASTINT (XCAR (XCAR (parents)))); offset = XINT (XCDR (XCAR (parents))); - this_from = from - offset; - this_to = to - offset; + this_from = from > offset ? from - offset : 0; + this_to = to > offset ? to - offset : 0; if (this_from < CHARSET_MIN_CODE (charset)) this_from = CHARSET_MIN_CODE (charset); if (this_to > CHARSET_MAX_CODE (charset))